﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Sendz.Domain;
using Sendz.Validators;
using Sendz.WebUI.Binders;

namespace Sendz.WebUI.Models
{
    [ModelBinder(typeof(FormFieldModelBinder))]
    public class FormFieldViewModel
    {
        public Guid FormFieldKey { get; set; }
        public string Name { get; set; }
        // Utilize a string[] array since multiple-selection items will require this (we can assume array[0] for all others)
        public string[] Value { get; set; }  
        public IEnumerable<SelectListItem> Options { get; set; }
        public string ListEnum { get; set; }
    }
}